/**
 * Created with IntelliJ IDEA.
 * Description:双向链表功能实现（带傀儡节点）
 */
public class Main {
    public static void main(String[] args) {
        MyLinckedList myLinckedList = new MyLinckedList();
//        myLinckedList.addFirst(12);
//        myLinckedList.addFirst(23);
//        myLinckedList.addFirst(34);
//        myLinckedList.addFirst(45);
//        myLinckedList.display();
//        int ret = myLinckedList.size();
//        System.out.println(ret);
//        System.out.println(myLinckedList.contains(12));
        myLinckedList.addLast(12);
        myLinckedList.addLast(23);
        myLinckedList.addLast(34);
        myLinckedList.addLast(45);
        myLinckedList.addLast(56);
        myLinckedList.display();
//        myLinckedList.addIndex(0,99);
//        myLinckedList.display();
//        myLinckedList.remove(23);
//        myLinckedList.display();
        myLinckedList.removeAllKey(23);
        myLinckedList.display();
//        System.out.println("=======");
//        myLinckedList.clear();

    }
}
